negotiator.boaframework.sharedagentstate.anac2011
Class TheNegotiatorSAS

java.lang.Object
  extended by negotiator.boaframework.SharedAgentState
      extended by negotiator.boaframework.sharedagentstate.anac2011.TheNegotiatorSAS

public class TheNegotiatorSAS
extends SharedAgentState

This is the shared code of the acceptance condition and bidding strategy of ANAC 2011 TheNegotiator. The code was taken from the ANAC2011 TheNegotiator and adapted to work within the BOA framework.

Author:
Mark Hendrikx

Field Summary
 
Fields inherited from class negotiator.boaframework.SharedAgentState
NAME
 
Constructor Summary
TheNegotiatorSAS(NegotiationSession negoSession)
           
 
Method Summary
 int calculateCurrentPhase(double time)
          Returns the current phase of the negotiation.
 void calculateEndPhases()
          Calculates the time which should be spend on each phase based on the distribution of the utilities of the bids.
 void calculateEndPhaseThresholds()
           
 int calculateMovesLeft()
           
 void calculatePropArray()
          Calculate how many possible bids are within a certain threshold interval.
 double calculateThreshold(double time)
          Returns the time dependent threshold which specifies how good a bid of an opponent should be to be accepted.
 int getMovesLeft()
           
 int getPhase()
           
 java.util.ArrayList<BidDetails> getPossibleBids()
           
 int[] getPropArray()
           
 double getThreshold()
           
 
Methods inherited from class negotiator.boaframework.SharedAgentState
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TheNegotiatorSAS

public TheNegotiatorSAS(NegotiationSession negoSession)
Method Detail

getPossibleBids

public java.util.ArrayList<BidDetails> getPossibleBids()

calculateEndPhases

public void calculateEndPhases()
Calculates the time which should be spend on each phase based on the distribution of the utilities of the bids.


calculateCurrentPhase

public int calculateCurrentPhase(double time)
Returns the current phase of the negotiation.

Returns:
phase of the negotiation

calculateThreshold

public double calculateThreshold(double time)
Returns the time dependent threshold which specifies how good a bid of an opponent should be to be accepted. This threshold is also used as a minimum for the utility of the bid of our agent.

Returns:
threshold

calculateMovesLeft

public int calculateMovesLeft()

calculateEndPhaseThresholds

public void calculateEndPhaseThresholds()

calculatePropArray

public void calculatePropArray()
Calculate how many possible bids are within a certain threshold interval. This is done for all the bins (phases).


getPropArray

public int[] getPropArray()

getPhase

public int getPhase()

getThreshold

public double getThreshold()

getMovesLeft

public int getMovesLeft()